package com.youlai.boot.modules.bfapp.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import jakarta.validation.constraints.*;

/**
 * 客户端管理表单对象
 *
 * @author maoyu
 * @since 2025-03-14 11:08
 */
@Getter
@Setter
@Schema(description = "客户端管理表单对象")
public class BfAppForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "版本")
    @NotBlank(message = "版本不能为空")
    @Size(max=20, message="版本长度不能超过20个字符")
    private String version;

    @Schema(description = "下载路径")
    @NotBlank(message = "下载路径不能为空")
    @Size(max=255, message="下载路径长度不能超过255个字符")
    private String url;

    @Schema(description = "描述")
    @Size(max=65535, message="描述长度不能超过65535个字符")
    private String description;
}
